<template>
  <div>
    <h4>插槽信息</h4>
    <span>start</span>
    <slot name="a" q="qqq" :w="123"></slot>
    ----
    <slot name="b"></slot>
    <span>end</span>
  </div>
</template>

<script setup>
import { useSlots } from 'vue';

const slots = useSlots();

console.log(slots);
console.log(slots.a());
console.log(slots.b());
</script>